$.getJSON("https://jsonip.com/",function(data){
    if (localStorage.getItem("token") == null){
        localStorage.setItem('ip',data.ip);
    }
})

$.ajax({
    type: "get",
    url: '/request/open/version/index/'+(localStorage.getItem("token") == null?"abcd":localStorage.getItem("token")),
    dataType: 'json',
    anyc: false,
    data: {},
    success: function (data) {
        if (data.code === 200){
            if (data.data !== localStorage.getItem('o_ves')){
                localStorage.setItem('o_ves',data.data)
                location.reload();
            }
        }
    }
})
